package com.fdb.smcts.core.exception;

/**
 * @description:ESB交易异常
 * @date:2018年12月18日 下午3:40:29
 * @author:hengyh
 */
public class ESBException extends Exception {
	private static final long serialVersionUID = -2678203134198782909L;
	
	public static final String MESSAGE = "应用系统异常";

	private String errorCode;

	public ESBException() {
		super(MESSAGE);
	}

	public ESBException(String message) {
		super(message);
	}
	
	public ESBException(String errorCode, String message) {
		super(message);
		this.errorCode = errorCode;
	}

	public ESBException(String message, Throwable cause) {
		super(message, cause);
	}
	
	public ESBException(String errorCode, String message, Throwable cause) {
		super(message, cause);
		this.errorCode = errorCode;
	}

	public ESBException(Throwable cause) {
		super(cause);
	}

	public String getErrorCode() {
		return errorCode;
	}
	
	@Override
	public String toString() {
		return super.toString();
	}
}
